#include "CCEGLView.h"
#include "AppDelegate.h"
#include "Config.h"
#include "Main.h"

USING_NS_CC;

int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
	UNREFERENCED_PARAMETER(hPrevInstance);
	UNREFERENCED_PARAMETER(lpCmdLine);

	AppDelegate app;
	cocos2d::CCEGLView *eglView = cocos2d::CCEGLView::sharedOpenGLView();
	eglView->setFrameSize(DESIGN_RESOLUTION_SIZE.width, DESIGN_RESOLUTION_SIZE.height);
	eglView->setFrameZoomFactor(1.0f);

	return cocos2d::CCApplication::sharedApplication()->run();
}